﻿using AutoMapper;
using T_vehicle.API.Application.Command.AccidentCommand;
using T_vehicle.Domain;

namespace T_vehicle.API.Extensions
{
    public class AccidentAuto:Profile
    {
        public AccidentAuto()
        {
            //添加事故记录
            CreateMap<AddAccidentCommand, Accident>().ReverseMap();
            //修改事故记录
            CreateMap<UpdateAccidentCommand, Accident>().ReverseMap();
        }
    }
}
